package com.it.park.dao;

import java.util.List;

import com.it.park.model.ResourceDownloadRecord;

public interface ResourceDownloadRecordMapper {

    int insertSelective(ResourceDownloadRecord record);
    
    /**
     * 查询该用户是否已经下载该资源
     * @param record
     * @return
     */
	 ResourceDownloadRecord selectByObject(ResourceDownloadRecord record);
	 
	 /**
	  * 该用户下载的所有资源
	  * @param userId
	  * @return
	  */
	 List<ResourceDownloadRecord> selectByUserId(Integer userId);

}